<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class CourseTime extends Model
{
    protected $fillable = [
        'course_id',
        'max_sub',
        'people_number',
        'course_time'
    ];


    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [

    ];

    public function course(){
        return $this->belongsTo(Course::class, 'course_id');
    }

}
